﻿@model ITProject.WebUI.Models.ProjectTeamLeader.ProjectTeamLeaderAddTeamTaskViewModel
@{
    ViewBag.Title = "Dodawanie zadan";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h2>Panel lidera zespołu projektu @Model.ProjectName</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
    new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = Model.ProjectName, Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>


<div class="PAplane">

@using (Html.BeginForm(MVC.ProjectTeamLeader.ActionNames.AddTeamTask, MVC.ProjectTeamLeader.Name, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend> Tworzenie nowego zadania w projekcie</legend>
        @Html.HiddenFor(model => model.ProjectName)
        @Html.HiddenFor(model=>model.TeamId)
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.Name) <span class="validation">*</span>
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model => model.Name)</p>
                @Html.TextBoxFor(model => model.Name, new { @class = "input" })
                
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.Description)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model => model.Description)</p>
                @Html.TextAreaFor(model => model.Description, new { @class = "input" })
                
            </div>
        </div>
                <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.ReturnStatus)
            </div>
            <div class="editor-field">

            @Html.DropDownListFor(model => model.ReturnStatus, ITProject.WebUI.Models.ProjectAdmin.ProjectAdminCreateReleaseViewModel.StatusList, new { @class = "input" })
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.ReturnPriority)
            </div>
            <div class="editor-field">

            @Html.DropDownListFor(model => model.ReturnPriority, Model.PriorityList.Priorities, new { @class = "input" })
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.ReturnFeature)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model => model.ReturnFeature)</p>
            @Html.DropDownListFor(model => model.ReturnFeature,Model.FeatureList, new { @class = "input" })
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.ReturnUser)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model => model.ReturnUser)</p>
            @Html.DropDownListFor(model => model.ReturnUser, Model.UserList, new { @class = "input" })
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.PlannedEndDate)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model => model.PlannedEndDate)</p>
            @Html.TextBoxFor(model => model.PlannedEndDate, new { @class = "cal", @Value = Model.PlannedEndDate.ToString("yyyy/MM/dd") })
            </div>
        </div>
        <p class="validation" style="padding-left:50px">        
        *pola wymagane
        </p>
        <div class="DSubmit">
        <p>
            <input type="submit" value="Dodaj" class="button"/>
        </p>
        </div>
    </fieldset>
}

</div>
<div class="clear">
</div>


